package com.rybbaby.tss.platform.sysRoleGroup.service.imp;

import com.rybbaby.tss.core.utils.PinyinUtil;
import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.platform.sysRoleGroup.entity.SysRoleGroup;
import com.rybbaby.tss.platform.sysRoleGroup.service.ISysRoleGroupService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author 谢进伟
 * @description 角色分组数据库操作服务实现
 * @createDate 2017-12-16 下午10:18:23
 */
@Service
@Transactional
public class SysRoleGroupServiceImp extends BaseServiceImp<SysRoleGroup> implements ISysRoleGroupService {


    /**
     * 获取角色分组数据源
     *
     * @return
     */
    @Override
    public List<Map<String, Object>> groupIdDatasource() {
        String sql11 = "SELECT id,name FROM sys_role_group";
        List<Map<String, Object>> groupId_datasources = this.findForJdbc(sql11, null);
        return groupId_datasources;
    }
}
